package com.sinopec.basemodule.api

import com.sinopec.basemodule.http.api.HttpResult
import com.sinopec.basemodule.model.ProductSpecModel
import io.reactivex.Observable
import retrofit2.http.Body
import retrofit2.http.Headers
import retrofit2.http.POST

/**
 * @author lwj
 * @ClassName: BaseModuleService
 * @Description: 公有接口
 */
interface BaseModuleService {
    /**
     * 退出登录
     */
    @Headers("Content-Type: application/json")
    @POST("api/login/loginOut")
    fun loginOut(@Body hashMap: java.util.HashMap<String?, Any?>?): Observable<HttpResult<Any?>?>?

    /**
     * 按单-预分拣弹窗下拉业务类型
     */
    @Headers("Content-Type: application/json")
    @POST("api/sortOrder/getProductSpecList")
    fun getSortOrderProductSpecListBySortOrder(@Body hashMap: HashMap<String?, Any?>?): Observable<HttpResult<List<ProductSpecModel?>>>

    /**
     * 按单-预分拣弹窗下拉业务类型
     */
    @Headers("Content-Type: application/json")
    @POST("api/sort/getProductSpecList")
    fun getProductSpecList(@Body hashMap: HashMap<String?, Any?>?): Observable<HttpResult<List<ProductSpecModel?>>>
}
